{%include file="m.index.header.tpl.php"%}
<!--主体部分-->
<div class="container" style="margin-top:70px;">
    <div class="row" style="margin-top:10px;">
        <form action="" method="get">
            <div class="col-sm-12 distance" >
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">年级:</label>
                    <div class="col-sm-10">
                        <select class="form-control" style="padding:0;" name="grade_id">
                            {%foreach from=$grade_lists key=key item=value%}
                            <option value="{%$value.grade_id%}"{%if $value.grade_id ==$grade_id%}selected{%/if%}>{%$value.grade_name%}</option>
                            {%/foreach%}
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-12 distance hierarchy" >
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">日期:</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="datepicker" name="start_time" value="{%$start_time%}">

                    </div>
                </div>
            </div>
            <div class="col-xs-12  distance hierarchy2">
                <div class="form-group text-center" style="padding-top:0px;">
                    <input type="hidden" name="a" value="disease.daydetails">
                    <button type="submit" class="btn btn-success" style="width:80%">搜索</button>
                </div>
            </div>
        </form>
    </div>
    <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
        <h5 class="text-center" style="color:red">学校年级学生因病缺课情况登记表</h5>
        {%foreach from=$lack_lists key=key item=value%}
        <table class="table table-striped table-bordered text-center"  id="middles">
            <caption>

                <!--  2016年10月11日
                </caption>-->
                <tr>
                    <td>班级:</td>
                    <td>{%$value.class_name%}</td>
                </tr>
                <tr>
                    <td>因病缺勤人姓名:</td>
                    <td>{%$value.student_name%}</td>
                </tr>
                <tr>
                    <td>性别:</td>
                    <td><table class="table table-striped table-bordered text-center" >
                            <tr>
                                <td>男</td>
                                <td>{%if $value.student_sex == 1%}是{%/if%}</td>
                            </tr>
                            <tr>
                                <td>女</td>
                                <td>{%if $value.student_sex == 0%}是{%/if%}</td>
                            </tr>
                        </table></td>
                </tr>
                <tr>
                    <td>缺课天数:</td>
                    {%if $value.lack_while==1%}<td>0.5</td>
                    {%else%}
                    <td>1</td>
                    {%/if%}
                </tr>
                <tr>
                    <td>因病缺课主要症状</td>
                    <td><table  class="table table-striped table-bordered text-center" >
                            <tr>
                                <td>发热</td>
                                <td>{%if $value.disease_id == 1%}是{%else%}否{%/if%}</td>
                            </tr>
                            <tr>
                                <td>腹泻</td>
                                <td>{%if $value.disease_id == 2%}是{%else%}否{%/if%}</td>
                            </tr>
                            <tr>
                                <td>结膜红肿</td>
                                <td>{%if $value.disease_id == 3%}是{%else%}否{%/if%}</td>
                            </tr>
                            <tr>
                                <td>皮疹</td>
                                <td>{%if $value.disease_id == 4%}是{%else%}否{%/if%}</td>
                            </tr>
                            <tr>
                                <td>黄疸</td>
                                <td>{%if $value.disease_id == 5%}是{%else%}否{%/if%}</td>
                            </tr>
                            <tr>
                                <td>受伤</td>
                                <td>{%if $value.disease_id == 6%}是{%else%}否{%/if%}</td>
                            </tr>
                            <tr>
                                <td>其他（请注明）</td>
                                <td>{%$value.lack_rests%}</td>
                            </tr>
                        </table></td>
                </tr>
                <tr>
                    <td>是否就诊</td>
                    <td> {%if $value.lack_doctor == 1%}是{%else%}否{%/if%} </td>
                </tr>
                <tr>
                    <td>备注</td>
                    <td>{%$explain_data.explain_content%}</td>
                </tr>
        </table>
        {%/foreach%}
    </div>
</div>
<!--container  end-->
<!--主体部分  end-->
<!--底部-->

<!--container  end-->

<!--底部end-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script>
    $(function() {
        $( "#datepicker" ).datepicker({

            changeMonth: true,
            changeYear: true

        });

        $( "#datepicker2" ).datepicker({

            changeMonth: true,
            changeYear: true

        });
    });
</script>
{%include file="m.index.footer.tpl.php"%}
